.environment-switcher-button.ant-btn.ant-btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-weight: 500;
  color: var(--requestly-color-text-default);
  font-size: var(--requestly-font-size-xs, 11px);
  max-width: 145px;
  background-color: transparent;
  border: none;
  padding: 0.5em 1em;

  .ant-typography {
    max-width: 95px;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }

  & > span {
    position: relative;
    bottom: 0.5px;
  }

  svg {
    position: relative;
    bottom: 0.5px;
    width: 14px;
    height: 14px;
    color: var(--requestly-color-text-default);
    flex-shrink: 0;
  }

  .environment-icon {
    display: none;

    svg {
      color: var(--requestly-color-text-subtle);
      font-size: var(--requestly-font-size-md, 14px);
    }
  }

  &:hover,
  &:focus,
  &:active {
    border: none;
  }

  .no-environment-button-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    .no-environment-icon {
      display: flex;
      align-items: center;
      justify-content: center;

      svg {
        position: static;
        bottom: auto;
        width: 11px;
        height: 11px;
        color: var(--requestly-color-text-subtle);
      }
    }
  }

  .no-environment-container {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--requestly-font-size-xs, 11px);
    color: var(--requestly-color-text-subtle);
    padding: 0 4px;

    svg {
      font-size: var(--requestly-font-size-md, 14px);
    }
  }
}

.environment-switcher-dropdown {
  .ant-dropdown-menu {
    width: 200px;
    background: var(--requestly-color-surface-1);
    border: 1px solid var(--requestly-color-white-t-10, rgba(255, 255, 255, 0.06));
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.16);
    max-height: 498px;
    overflow-y: auto;
    padding-left: 4px;
    padding-right: 4px;

    li.ant-dropdown-menu-item {
      padding: 0;
      margin: 0;

      .ant-dropdown-menu-title-content {
        width: 100%;
      }

      .env-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-3, 6px) var(--space-5, 12px);
        color: var(--requestly-color-text-default);
        border-radius: 4px;
        font-size: var(--requestly-font-size-md, 14px);
        max-height: 26px;

        svg {
          font-size: 1rem;
          flex-shrink: 0;
          width: 13px;
          height: 13px;
        }

        &.no-env-item {
          display: flex;
          gap: 4px;

          .no-env-icon {
            display: flex;
            align-items: center;
            margin-right: 4px;

            svg {
              font-size: 16px;
              color: var(--requestly-color-text-subtle);
            }
          }

          .ant-typography {
            flex: 1;
          }
        }
      }

      .active-env-item {
        background: var(--requestly-color-primary);
      }
    }

    .ant-dropdown-menu-item {
      &:not(:first-child) {
        margin-top: 4px;
      }
    }

    .ant-dropdown-menu-item-divider {
      margin: 4px 0;
      background-color: var(--requestly-color-white-t-10, rgba(255, 255, 255, 0.06));
      height: 1px;
    }
  }
}
